package e.odbo.data.model;

import e.odbo.data.util.StringUtils;

public class Index {
    public String table;
    public String[] columns;

    public Index(String table,String ...columns) {
        this.table = table;
        this.columns=columns;
    }

    public String getTable() {
        return table;
    }

    public String[] getColumns() {
        return columns;
    }

    public String getName(){
       return table+'_'+ StringUtils.join(columns,'_');
    }
}
